import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/applyJoin',
    method: 'get',
    params: query
  })
}

export function updateRejectStatus(id,msg) {
  return request({
    url: '/applyJoin/Rejectstatus',
    method: 'post',
    params: {
      id:id,
      msg:msg
    }
  })
}

export function getClubsOption() {
  return request({
    url: '/clubs/list',
    method: 'get',
  })
}

export function updateStatus(id,status) {
  return request({
    url: '/applyJoin/status',
    method: 'post',
    params:{
      id:id,
      status:status
    }
  })
}

export function deleteArticle(data) {
  return request({
    url: '/applyJoin',
    method: 'delete',
    data
  })
}